
package com.shop.cloud.upms.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;


import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 系统管理员用户绑定租户关联表
 *
 * @author
 * @date 2021-11-11 12:30:59
 */
@Data
@TableName("sys_user_tenant")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统管理员用户绑定租户关联表")
public class SysUserTenant extends Model<SysUserTenant> {
    private static final long serialVersionUID=1L;

	/**
	 * 主键ID
	 */
	@Schema(description = "PK")
	@TableId(type = IdType.ASSIGN_ID)
	private String id;
    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID")
    private String userId;
    /**
     * 租户ID
     */
    @NotNull(message = "租户ID不能为空")
    @Schema(description = "租户ID")
    private String tenantId;

}
